//
//  SearchStrDBTools.h
//  NC-Trendy
//
//  Created by LeungChaos on 16/2/26.
//  Copyright © 2016年 liang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CoreSearchStr.h"

@interface SearchStrDBTools : NSObject
/**
 * 保存搜索字符到本地数据库
 **/
+ (void)insertSearchStr:(NSString *)str errorInfo:(void(^)(NSError *error))errorBlock;
/**
 * 读取所有历史搜索字符
 **/
+ (NSMutableArray<NSString *> *)searchStrArrayWithErrorInfo:(void(^)(NSError *error))errorBlock;
/**
 * 清除所有历史搜索
 **/
+ (void)deleteAllSearchStrWithErrorInfo:(void(^)(NSError *error))errorBlock;

@end
